package org.lb.MarketingSystem.serviceImpl;

import java.util.List;

import org.lb.MarketingSystem.dao.DepartmentMapperDao;
import org.lb.MarketingSystem.entity.Department;
import org.lb.MarketingSystem.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component(value="departmentServiceImpl")
public class DepartmentServiceImpl implements DepartmentService{

    @Autowired
	private DepartmentMapperDao departmenMapperDao;
	public boolean addDepartment(Department department) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean deleteDepartment(String departmentId) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean updateDepartment(Department department) {
		// TODO Auto-generated method stub
		return false;
	}

	public List<Department> get_allDepartment() {
		return departmenMapperDao.select_allDepartment();
	}

	public String getDepartmentNameByDerId(int userId) {	
		return departmenMapperDao.selectDepartmentNameByDerId(userId);
	}

	public List<Integer> getUsersId(String epartmentName) {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer getdepartmentIdByName(String departmentName) {
		return departmenMapperDao.selectdepartmentIdByName(departmentName);
	}

}
